package com.cx.mapper;

import com.cx.pojo.Department;
import com.cx.pojo.DepartmentPages;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper extends BaseMapper<Department>{

    // 添加一个员工
    int addDept(Department department);

    // 修改员工
    int updateDept(Department department);

    // 通过sn查部门
    List<Department> findAllBySn(DepartmentPages departmentPages);

    // 批量删除部门
    int patchDel(List<Integer> ids);

}
